import { h } from 'vue';
import { NAvatar } from 'naive-ui';
export const columns = [
  {
    title: '房间ID',
    key: 'id',
    width: 20,
  },
  {
    title: '标题',
    key: 'title',
    width: 30,
  },
  {
    title: '描述',
    key: 'des',
    width: 50,
  },
  {
    title: '地址',
    key: 'address',
    width: 30,
  },
  {
    title: '价格',
    key: 'price',
    width: 30,
  },
  {
    title: '房间剩余',
    key: 'rest',
    width: 30,
  },
  {
    title: '最多入住',
    key: 'maxAdu',
    width: 30,
  },
  {
    title: '入住须知',
    key: 'notice',
    width: 50,
  },
  {
    title: '预览',
    key: 'img',
    width: 20,
    render(row) {
      return h(NAvatar, {
        size: 38,
        src: row.img,
      });
    },
  },
  {
    title: '创建时间',
    key: 'createTime',
    width: 30,
  },
];
